import java.io.*;
import java.util.Scanner;
public class text2 {
    public static void main(String[] args) throws IOException {
        System.out.println("请输入字符串：");
        Scanner scan = new Scanner(System.in);
        String line = scan.nextLine();
        line = line.toUpperCase();
        FileWriter out = new FileWriter("a.txt");
        out.write(line);
        out.close();
        scan.close();
    }
}
